<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePartCompaniesTable extends Migration
{
  /**
   * 配件单位
   * Run the migrations.
   *
   * @return void
   */
  public function up()
  {
    Schema::create('part_company', function (Blueprint $table) {
      $table->increments('id');
      $table->string('name', 100)->comment('配件单位名称');
      $table->string('tel', 20)->comment('配件单位联系方式');
      $table->text('msg')->nullable()->comment('备注信息');
      $table->timestamps();
    });
  }

  /**
   * Reverse the migrations.
   *
   * @return void
   */
  public function down()
  {
    Schema::dropIfExists('part_company');
  }
}
